package com.example.selfcontrol.controller;

import com.example.selfcontrol.config.Response;
import com.example.selfcontrol.service.StudentStuffService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/stuff")
@Api(value = "审核视图")
public class StudentStuffController {
    @Autowired
    private StudentStuffService studentStuffService ;

    @GetMapping("add")
    @ApiOperation("创建 学生认证 审核")
    public Response JudgeUserStuff(Long userId, String picture, String code) {
        return  studentStuffService.JudgeUserStuff(userId,picture,code) ;
    }
}
